<!-- 售后进度  -->
<template>
	<s-layout title="售后进度">
		<view class="log-box">
			<view v-for="(item, index) in state.info" :key="item.title">
				<log-item :item="item" :index="index" :data="state.info"></log-item>
			</view>
		</view>
	</s-layout>
</template>

<script setup>
	import { onLoad } from '@dcloudio/uni-app';
	import { computed, reactive } from 'vue';
	import logItem from './log-item.vue';
	import $order from '/shop/api/order.js';
	const state = reactive({
		active: 1,
	});
	async function getDetail(id) {
		const { data } = await $order.aftersale.log(id);
		state.info = data;
	}
	onLoad((options) => {
		state.aftersaleId = options.id;
		getDetail(options.id);
	});
</script>

<style lang="scss" scoped>
	.log-box {
		padding: 24rpx 24rpx 24rpx 40rpx;
		background-color: #fff;
	}
</style>
